package com.lnu.information;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 3:46 PM 2022/4/7
 * @modified By :
 */
public class Rect implements Shape{
    double width;
    double height;

    public Rect(double width, double height) {
        super();
        this.width = width;
        this.height = height;
    }

    public Rect() {
    }

    public double getGirth(){
        return (width + height) * 2;
    }
    public double getArea(){
        return width * height;
    }
}
